package com.nov.multidatasource.dao.secondary;


import com.nov.multidatasource.entity.secondary.Student;
import com.nov.multidatasource.entity.secondary.StudentExample;
import org.apache.ibatis.annotations.Param;
import javax.annotation.Resource;
import java.util.List;


@Resource
public interface StudentMapper {

  long countByExample(StudentExample example);

  int deleteByExample(StudentExample example);

  int deleteByPrimaryKey(Long id);

  int insert(Student record);

  int insertSelective(Student record);

  List<Student> selectByExample(StudentExample example);

  Student selectByPrimaryKey(Long id);

  int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);

  int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);

  int updateByPrimaryKeySelective(Student record);

  int updateByPrimaryKey(Student record);
}
